<div class="bottom-nav">
    <div event-click="{{'$Event.showpersonal_btn'}}">
        <div class="mainmenu">
            <div class="icon-menu"></div>
        </div>
        <div class="innertitle">{{loginer.info.name}} - {{title}}</div>
    </div>
    <div class="navbox">
        <a href="#default/order" event-click="{{'$Event.showpersonal_btn'}}">
            <div class="navitem {{isbottom&&'focus'}}">订单管理</div>
        </a>
        <div style="width:100%;height:1px;margin:0 auto;"></div>
        <a>
            <div data="1" class="navitem {{isbottom&&'focus'}}" event-click="{{#if showdata==1}}{{'$Event.closechild'}}{{#else}}{{'$Event.showchild'}}{{/if}}">个人信息</div>
        </a>
        <div class="childmenu {{showdata==1&&'focus'}}" event-click="{{'$Event.showpersonal_btn'}}">
            <a href="#default/info">
                <div class="item">
                    <div class="icon-newspaper"></div>
                    基本信息
                </div>
            </a>
            <a href="#default/info?type=2">
                <div class="item">
                    <div class="icon-key"></div>
                    密码管理
                </div>
            </a>
            <a href="#default/info?type=3">
                <div class="item">
                    <div class="icon-location"></div>
                    收货地址
                </div>
            </a>
        </div>
        <a href="#default/comment" event-click="{{'$Event.showpersonal_btn'}}">
            <div class="navitem {{isbottom&&'focus'}}">评价管理</div>
        </a>
        <a>
            <div data="2" class="navitem {{isbottom&&'focus'}}" event-click="{{#if showdata==2}}{{'$Event.closechild'}}{{#else}}{{'$Event.showchild'}}{{/if}}">个人收藏</div>
        </a>
        <div class="childmenu {{showdata==2&&'focus'}}" event-click="{{'$Event.showpersonal_btn'}}">
            <a href="#default/collection">
                <div class="item">
                    <div class="icon-newspaper"></div>
                    店铺收藏
                </div>
            </a>
            <a href="#default/collection?type=2">
                <div class="item">
                    <div class="icon-key"></div>
                    商品收藏
                </div>
            </a>
        </div>
        <a>
            <div data="3" event-click="{{#if showdata==3}}{{'$Event.closechild'}}{{#else}}{{'$Event.showchild'}}{{/if}}" class="navitem {{isbottom&&'focus'}}">返利信息</div>
        </a>
        <div class="childmenu {{showdata==3&&'focus'}}" event-click="{{'$Event.showpersonal_btn'}}">
            <a href="#default/point">
                <div class="item">
                    <div class="icon-coin"></div>
                    推荐返利
                </div>
            </a>
            <a href="#default/point?type=2">
                <div class="item">
                    <div class="icon-users"></div>
                    导购链接
                </div>
            </a>
        </div>
    </div>
</div>
<div class="bottomnavblock"></div>
<script type="text/vm">
    function(vm){
        require(['common','jQuery'],function(){
            App.set('showdata','');
            App.set('$Event.showpersonal_btn',function(){
                App.model.toggle('isbottom');
                App.set('showdata','');
            });
            App.set('$Event.showchild',function(){
                App.set('showdata',$(this).attr('data'));       
            });
            App.set('$Event.closechild',function(){ 
                App.set('showdata',''); 
            });
        })
    }
</script>